import { type } from "os";
import React, { MutableRefObject, PropsWithChildren } from "react"
import { FormBaseType, FormItemBaseType } from "../Form/interface";
import { InputNumberBaseInterFace } from "../Input/InputNumber/interface";
import { InputTextBaseInterFace } from "../Input/InputText/interface";
import { DesignTypes } from "../typings";


export type SearchColumnType = {
  formItem: Pick<FormItemBaseType, 'name' | 'label'>,
  type: 'text' | 'number',
}

export type SearchActionType = {
  search: () => void,
  reset: () => void,
}

export interface SearchBaseType {
  columns: SearchColumnType[],
  actionRef?: MutableRefObject<SearchActionType | undefined>,
  className?: string,
  formProps?: FormBaseType,
  search?: (values: Record<string, any>) => void,
  reset?: () => void
}



export type SearchPropsType = SearchBaseType